//
//  BCConversionCurrencyHuilvCell.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/7.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import "BCConversionCurrencyHuilvCell.h"

@implementation BCConversionCurrencyHuilvCell



- (void)setCellModel:(BConversionCellModel *)cellModel {
    [super setCellModel:cellModel];
}

- (void)setConversionData:(BCConversionData *)conversionData {
    [super setConversionData:conversionData];
    //
    BCConversionDataTickerModel *ticker = conversionData.currentTicker;
    //
    if (ticker) {
        //
        NSString *currentString = conversionData.curr.sign;
        NSString *tickerStr = ticker.sign;
        //兑换
        NSString *lastString = [NSString stringWithFormat:@"%@",@(ticker.last)];
        //
        self.contentLabel.text = [NSString stringWithFormat:@"1 %@ ≈ %@ %@",currentString,lastString,tickerStr];
    }else {
        self.contentLabel.text = nil;
    }
}

@end
